import { BrowserRouter, Routes, Route } from 'react-router-dom'

import Board from './pages/Board'
import Article from './pages/Article'
import Layout from './Layout'
import NotFound from './pages/NotFound'

function App() {
	return (
		<>
			<BrowserRouter>
				<Routes>
					<Route path="/" element={<Layout />}>
						<Route index element={<Board />}></Route>
						<Route path="article" element={<Article />}></Route>
					</Route>
					<Route path="*" element={<NotFound />}></Route>
				</Routes>
			</BrowserRouter>
		</>
	)
}

export default App
